package com.gold.service;

import java.util.List;
import java.util.Map;

import com.gold.entity.User;
import com.gold.myexception.Myexception;

public interface UserService {

	public List<User> selectAllUser();

	public List<User> selectUserByLikeAndPage(Map<String, String> map);

	public List<User> selectUserByLike(Map<String, String> map);

	public List<User> selectUserByPage(Map<String, String> map);

	public User selectUserByUserName(String userName);
	
	public User selectUserByUserId(int userId);

	public void insertUser(User user) throws Myexception;

	public void updateUserStatusIdByUserId(String[] arr, String status);

	public void updateUserPwdByUserId(String userName, String userPwd, String userPwd2, String userPhone) throws Myexception;

	public User userLogin(String userName, String userPwd) throws Myexception;
	
	public void updateUserCurrencyByUserId(Map<String, String> map) throws Myexception;
	
	public void updateUserTariffeByUserId(Map<String, String> map) throws Myexception;
	
	public void updateUserCardAmountByUserId(Map<String, String> map) throws Myexception;


}
